package com.practice.proxy;

import java.lang.reflect.Proxy;

public class BusinessProcessorMain {

	public static void main(String[] args) {
		BusinessProcessorImpl processorTarget = new BusinessProcessorImpl();
		BusinessProcessorHandler handler = new BusinessProcessorHandler(
				processorTarget);
		BusinessProcessor processorProxy = (BusinessProcessor) Proxy
				.newProxyInstance(BusinessProcessorImpl.class.getClassLoader(),
						BusinessProcessorImpl.class.getInterfaces(), handler);

		processorProxy.processBusiness();
	}

}
